package org.stbland.test.gillesjava;

import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.List;

public class PinDrawConsole {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			List<Pin> pinList = PinListGenerator.generate();

			OutputStreamWriter outWriter = new OutputStreamWriter(System.out);
			try {
				PinDraw pinDraw = new PinDrawText(outWriter);
				pinDraw.draw(pinList);
				if (false) {
					outWriter.flush();
				}
			} finally {
				outWriter.close();
			}

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
